home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 10
/
FM Towns Free Software Collection 10.iso
/
ms_dos
/
tool
/
select
/
gotoh.h
< prev
next >
Wrap
Text File
|
1995-02-18
|
794b
|
27 lines
#ifndef _GOTOH
#define _GOTOH
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
#define NOERROR 0
#define rnd(x) (rand()%x) /* 0~ x-1 */
#define dice(x) (rand()%x +1) /* 1~ x */
#define randomize(x) srand(x) /* 〃 */
#define beep() printf("\a") /* 〃 */
#ifndef _TXT_TOOL
#define locate(x,y) printf("\x1b[%d;%df", y , x ) /* x1~80 y1~25 */
#define txt_cls() printf("\f") /* no param */
#define txt_color(col) printf("\x1b[%dm", col+30 ) /* c=0~7 */
#define txt_csloff() printf("\x1b[1v") /* カーソル消去 */
#define txt_cslon() printf("\x1b[0v") /* カーソル表示 */
#define txt_csl(x) printf("\x1b[%dv",1-x) /* 1表示 0非表示 */
#endif
/* #define time$ clock() */
#endif